<?php
namespace Tbf\Bundle\YntAuthBundle\Controller;
use \Tbf\Bundle\YntAuthBundle\Denglu\LoginHandler;
use Tbf\Bundle\TbfBundle\Controller\TbfController;

class CallbackController extends TbfController{
    function dengluToken(){
        return $this->get('tbf_ynt_auth.denglu')->onToken($this->getRequest());
    }
    function douban(){
        return $this->get('tbf_ynt_auth.douban')->onLoginCallback($this->getRequest());
    }
}